<template>
  <div>
    <div class="title">周某去哪</div>
    <ul>
      <li class="item border-bottom" v-for="item of list" :key="item.id">
        <div class="img-item-wrapper">
          <img class="item-img"
               :src="item.imgUrl" alt="">
        </div>
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
  export default {
    name: 'HomeRecommend',
    props: {
      list: Array
    }
  }
</script>
<style lang="stylus" scoped>
  .title
    line-height: .8rem
    background: #eee
    text-align: .4rem
    margin-top: .2rem
    padding-left: .2rem
  .item-img
    width: 100%
  .item-title
    line-height: .54rem
    font-size: .32rem
  .img-item-wrapper
    overflow: hidden
    height: 0
    padding-bottom: 39%
</style>
